package com.zhenhao.xsq.ui.activity.user.presenter;


import com.zhenhao.xsq.data.api.HttpAPIWrapper;
import com.zhenhao.xsq.ui.activity.user.UserInfoActivity;
import com.zhenhao.xsq.ui.activity.user.contract.UserInfoContract;

import javax.inject.Inject;

import androidx.annotation.NonNull;
import io.reactivex.disposables.CompositeDisposable;

/**
 * @author xlei
 * @Package com.yxld.gb.xsq.ui.activity.user
 * @Description: presenter of UserInfoActivity
 * @date 2019/03/15 13:59:39
 */
public class UserInfoPresenter implements UserInfoContract.UserInfoContractPresenter {

    HttpAPIWrapper httpAPIWrapper;
    private final UserInfoContract.View mView;
    private CompositeDisposable mCompositeDisposable;
    private UserInfoActivity mActivity;

    @Inject
    public UserInfoPresenter(@NonNull HttpAPIWrapper httpAPIWrapper, @NonNull UserInfoContract.View view,
                             UserInfoActivity activity) {
        mView = view;
        this.httpAPIWrapper = httpAPIWrapper;
        mCompositeDisposable = new CompositeDisposable();
        this.mActivity = activity;
    }

    @Override
    public void subscribe() {

    }

    @Override
    public void unsubscribe() {
        if (!mCompositeDisposable.isDisposed()) {
            mCompositeDisposable.dispose();
        }
    }

}